package com.ls.basic.ArrayList;

import java.util.ArrayList;

/**
 * @Auther: chenjun
 * @Date 2021年01月24日 18:23
 * @Description:
 */
public class ArrayListDemo2 {
    public static void main(String[] args) {
        ArrayList<Person> list=new ArrayList<Person>();

        Person one=new Person("耿梦珠",28,1.65,"华东同事小美女");
        Person two=new Person("林晓倩",22,1.60,"华东小美女");
        Person three=new Person("尹晓琳",23,1.68,"烟大小美女");
        Person four=new Person("张雪莲",24,1.69,"烟大小美女");

        list.add(one);
        list.add(two);
        list.add(three);
        list.add(four);

        for (int i = 0; i < list.size(); i++) {
            System.out.println(list.get(i).getName()+list.get(i).getAge());
        }



    }
}
